package per.liu.controller;

import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by Administrator on 2015/3/26.
 */

@Controller
@RequestMapping(value = "/")
public class MainController {

	@RequestMapping(value = { "/", "index" })
	public String index(Model model) {
		Subject subject = SecurityUtils.getSubject();
		return "/index";
	}

	@RequestMapping(value = "fail")
	public String fail(Model model) {
		return "/fail";
	}

	@RequestMapping(value = "login")
	public String login(Model model) {
		return "/login";
	}

//	@RequestMapping(value = "shiro-cas")
//	public String casPage(Model model) {
//		return "/shiro-cas";
//	}

}
